let data = null
function getData() {
  // fetch('https://fastmock.site/mock/7224291cf063beceaa27956d01e64560/keep/recommend')
  return new Promise((reslove,reject) => {
    setTimeout(() => {
      data = { name: '嘿嘿', age: 21 };
      reslove()
    }, 1000)
  })
}

function getData1() {
  // fetch('https://fastmock.site/mock/7224291cf063beceaa27956d01e64560/keep/recommend')
  return new Promise((reslove,reject) => {
    setTimeout(() => {
      data = { name: '哈哈', age: 19 };
      reslove()
    }, 1000)
  })
}

function showData() {
  console.log(`展示数据:${JSON.stringify(data)}`);
}

async function handle() {
  await getData()
  await getData1()
  showData()
}
handle()